[paket]
tanim   = Gerçek X ekranları için VNC sunucusu
paketci = Cihan_Alkan
grup 	= sistem
url     = https://github.com/LibVNC

[gerek]
derleme = libvncserver
calisma = libjpeg-turbo xorg-libxdamage xorg-libxinerama xorg-libxrandr xorg-libxtst

[kaynak]
1      = https://github.com/LibVNC/x11vnc/archive/${surum}.tar.gz::$isim-$surum.tar.gz
2      = https://github.com/LibVNC/x11vnc/commit/95a10ab64c2d.patch
3      = https://github.com/LibVNC/x11vnc/commit/a48b0b1cd887.patch
4      = https://github.com/LibVNC/x11vnc/commit/69eeb9f7baa1.patch

[sha256]
1 		= 885e5b5f5f25eec6f9e4a1e8be3d0ac71a686331ee1cfb442dba391111bd32bd

[derle]
betik = patch -d -Np1 -i "/sources/010-x11vnc-xfc-null-ptr.patch" # FS#65851
betik = patch -d -Np1 -i "/sources/020-x11vnc-gcc10-fix.patch"
betik = patch -d -Np1 -i "/sources/030-x11vnc-scan-limit-access-to-shared-memory" # FS#68930
betik = autoreconf -fi
betik =./configure --prefix='/usr' --mandir='/usr/share/man'
betik =make
	      
[pakur]
betik = make DESTDIR="${PKG}" install
betik = install misc/{rx11vnc,Xdummy} "${PKG}"/usr/bin
